const Mock = require("mockjs");

// const result = Mock.mock({
//   "name|3-5": "abc", // abc 出现3到5次
//   "number|1-100": 100, // 1到100随机数
// });

const result = Mock.mock({
  "datas|2-2": [
    {
      "id|+1": 1,
      username: "@cname",
      birthdady: "@date",
      name: "前端第 @id 期",
      openDate: "@date",
      mobile: /1\d{10}/,
    },
  ],
});
console.log(result);
